package com.sjgs.gis.fs.store;

import com.sjgs.gis.config.KVStoreProperties;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.rocksdb.*;
import java.io.Closeable;
import java.io.IOException;
import java.util.*;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;

/**
 * 集群镜像KV存储
 * 集群数据镜像原理采用MPP结构
 *
 * @author jxw
 */
public final class MirrosKVStore extends RocksStore implements Closeable {
    private static final Log logger = LogFactory.getLog(MirrosKVStore.class);
    private final ReadWriteLock readWriteLock = new ReentrantReadWriteLock();

    private List<ColumnFamilyOptions> cfOptionsList;
    private List<ColumnFamilyDescriptor> cfDescriptors;
    private Map<String, ColumnFamilyHandle> cfHandleMap;

    private RocksDB db;

    public MirrosKVStore(KVStoreProperties kvStoreProperties) {
        super(kvStoreProperties);
    }


    @Override
    public void close() throws IOException {

    }
}
